<?php

App::uses('Controller', 'AppController');

class FrontController extends AppController {

    //layout
    public $layout = "frontend";
    
    //component
    public $components = array(
        'Session',
        'Paginator',
        'Mail'
    );
    
    //helper
    public $helpers = array(
        'Html' => array('className' => 'BoostCake.BoostCakeHtml'),
        'Form',
        'Paginator' => array('className' => 'BoostCake.BoostCakePaginator'),
        'Custom'
    );
    
    // data breadcrumb
    public $breadcrumb;
    public $seo_description = "creation";
    public $seo_keyword = "creation";
    
    /**
     * 
     */
    public function beforeFilter() {
        parent::beforeFilter();
        $this->breadcrumb = array(
            '0' => array(
                'text' => __('Home'),
                'link' => Router::url('/home/index',true)
            )
        );
    }
    
    /**
     * 
     */
    public function beforeRender() {
        parent::beforeRender();
        $this->set('breadcrumb',$this->breadcrumb);
        $this->set('seo_description',$this->seo_description);
        $this->set('seo_keyword',$this->seo_keyword);
    }

}
